package org.zs.javaConfig1;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/*
    步骤1： 添加配置类注解声明自己是配置类@Configuration
    需要1  扫描就添加对应的注解 @ComponentScan(basePackages = "org.zs.ioc1")
    需要2  引入外部配置文件 @PropertySource(value = "classpath:jdbc.properties")
 */
@Configuration // 添加配置类注解声明自己是配置类@Configuration
@ComponentScan(basePackages = "org.zs.ioc1")
@PropertySource(value = "classpath:jdbc.properties")
public class JavaConfig {
}
